/* 引入common.css */
@import url(./common.css);
/*或 @import "common"; */
body{
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    font-family:Arial, Helvetica, STHeiTi, sans-serif;
    background: #f2f2f2;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    height: 1000px;
}
/* html字体大小50 ，height= 页面元素大小88 / 50 */
@baseFont:50;
.search-content{
    display: flex;
    align-items: center;
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 15rem;
    height: (88rem / @baseFont);
    background: url(../images/bg.png)no-repeat;
    .classify,.login{
       width: (36rem / @baseFont); 
       height: (60rem / @baseFont);
       padding: (11rem / @baseFont) (25rem / @baseFont) (7rem / @baseFont) (24rem / @baseFont);
       img{
           width: 100%;
       }
    }
    .login{
        background: url(../images/login.png) no-repeat center;
        background-size: (36rem / @baseFont) (60rem / @baseFont);
    }
    .search{
        position: relative;
        flex: 1;
        form{
            height: (88rem / @baseFont);
            input{
                width: 100%;
                height: (64rem / @baseFont);
                border-radius: (32rem / @baseFont);
                padding-left:(70rem / @baseFont);
                padding-right:(23rem / @baseFont);
                color: #757575;
                font-size: (26rem / @baseFont);
                &::placeholder{
                    color: #757575;
                }
            }
        }
        .search-icon{
            position: absolute;
            top: (27rem / @baseFont);
            left: (20rem / @baseFont);
            width: (36rem / @baseFont);
            height: (36rem / @baseFont);
            background: url(../images/search.png);
            background-size: (36rem / @baseFont);
        }
    }
}
.banner{
    a{
        img{
            width: 100%;
            vertical-align: middle;
        }
    }
}
.ad{
    display: flex;
    a{
        flex: 1;
        img{
            width: 100%;
            vertical-align: middle;
        }
    }
}
.nav{
    display: flex;
    flex-wrap: wrap;
    .nav-items{
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 20%;
        margin-top: (24rem / @baseFont);
        img{
            width: (84rem / @baseFont);
            height: (84rem / @baseFont);

        }
        span{
            margin-top: (5rem / @baseFont);
            color: #666;
            font-size: (22rem / @baseFont);
        }
    }
}
.nav2{
    margin-top: (30rem / @baseFont);
    width: (750rem / @baseFont);
    .nav-items{
        float: left;
        text-align: center;
        // display: flex;
        // align-items: center;
        // flex-direction: column;
        width: (150rem / @baseFont);
        height: (140rem / @baseFont);
        img{
            display: block;
            width: (84rem / @baseFont);
            height: (84rem / @baseFont);
            margin: (10rem / @baseFont) auto 0;

        }
        span{
            display: block;
            margin-top: (5rem / @baseFont);
            color: #666;
            font-size: (22rem / @baseFont);
            height: (28rem / @baseFont);
            line-height: (28rem / @baseFont);
        }
    }
}